# $Id: PKGBUILD 182695 2013-04-12 18:48:00Z foutrelis $
# Maintainer: Kevin Piche <kevin@archlinux.org>
# Contributor: Andrew Simmons <andrew.simmons@gmail.com>

pkgname=perl-date-manip
_realname=Date-Manip
pkgver=6.39
pkgrel=1
pkgdesc="Date::Manip - date manipulation routines"
arch=('any')
license=('PerlArtistic')
url="http://search.cpan.org/dist/${_realname}/"
depends=('perl')
options=('!emptydirs')
source=(http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/${_realname}-${pkgver}.tar.gz)
md5sums=('dd91d884b5ff044134c2870b1de678c9')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"

  # install module in vendor directories.
  perl Build.PL installdirs=vendor
  perl Build
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  perl Build  destdir="${pkgdir}" install
}
